package com.cneport.das.server.trans.core;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author GavinZhang
 * @version 1.0
 * @desc： Server用到的业务配置
 * @company 东方物通科技有限（北京）公司
 * @date 2021/9/2 8:49
 */
@Getter
@Component
public class PropertiesReader {
    @Value("${server.servlet.context-path}")
    private String contextPath;
    @Value("${server.port}")
    private int port;
    @Value("${logging.file.path}")
    private String logBasePath;
    @Value("${das.customer.config.basedir}")
    private String customerConfBasePah;
    @Value("${logging.clear.zip.keepLiveDays}")
    private int logKeepLiveDays;
    @Value("${logging.clear.zip.bizArchives.clearStrategy}")
    private int archiveLogClearStrategy;
    @Value("${mq.pull.frequency.protect}")
    private int pullProtect = 0;
    @Value("${mq.pull.frequency.internal.millis}")
    private long internalMillis;
    @Value("${client.banding.enabled}")
    private int clientBinding = 1;
}
